<?php

namespace app\service\api;

use app\db\api\D_article;

class S_article
{
    public $d_article;

    public function __construct()
    {
        $this->d_article = new D_article();
    }

    /**
     * 获取有效的分类列表
     * @param string $paramObj
     * @return array
     */
    public function validData($paramObj=""){
        return $this->d_article->validData($paramObj);
    }

    /**
     * 文章列表数据
     * @param string $paramObj
     * @return array
     */
    public function listData($paramObj=""){
        return $this->d_article->listData($paramObj);
    }

    public function __call($name,$arguments)
    {
        return recordLogMsgLevelTwo(app("errorLevel")::E_WARNING,app("errorCode")::UNDEFINED_METHOD,lang("sys.noMethodDefined"),$name,$arguments);
    }
}